import Layout from '@/layout'

const congigRouter = [
  {
    path: '/home/index',
    component: Layout,
    meta: { title: '首页', icon: 'icon_base' },
    children: [
      {
        path: '/home/index',
        component: () => import('@/views/home/index'),
        meta: { title: '首页' }
      },
      {
        path: '/home/collocateHome',
        component: () => import('@/views/home/collocateHome'),
        meta: { title: '配置首页' }
      }
    ]
  },
  {
    path: '/business',
    component: Layout,
    meta: { title: '业务', icon: 'icon_base' },
    children: [
      {
        path: 'mine',
        component: () => import('@/views/business/mine/index'),
        meta: { title: '我的业务' }
      },
      {
        path: '/business/smsrecord',
        component: () => import('@/views/business/smsrecord/index'),
        meta: { title: '短信记录' }
      },
      {
        path: '/business/salesrecord',
        component: () => import('@/views/business/salesrecord/index'),
        meta: { title: '销项记录' }
      },
      {
        path: '/business/rectification',
        component: () => import('@/views/business/rectification/index'),
        meta: { title: '整改建议' }
      },
      {
        path: '/business/datareport',
        component: () => import('@/views/business/datareport/index'),
        meta: { title: '数据报告' }
      },
      {
        path: '/business/statistics',
        component: () => import('@/views/business/statistics/index'),
        meta: { title: '统计' }
      }
    ]
  },
  {
    path: '/indicatorlib',
    component: Layout,
    meta: { title: '指标库', icon: 'icon_base' },
    children: [
      {
        path: '/indicatorlib/assessdepart',
        component: () => import('@/views/indicatorlib/assessdepart/index'),
        meta: { title: '考核部门' }
      },
      {
        path: '/indicatorlib/datasystem',
        component: () => import('@/views/indicatorlib/datasystem/index'),
        meta: { title: '指标服务器' }
      },
      {
        path: '/indicatorlib/exploitation',
        component: () => import('@/views/indicatorlib/exploitation/index'),
        meta: { title: '指标管理' }
      },
      {
        path: '/indicatorlib/headquarter',
        component: () => import('@/views/indicatorlib/headquarter/index'),
        meta: { title: '业务视角' }
      }
    ]
  },
  {
    path: '/accountmanage',
    component: Layout,
    meta: { title: '账户管理', icon: 'icon_base' },
    children: [
      {
        path: '/accountmanage/index',
        component: () => import('@/views/accountmanage/index'),
        meta: { title: '账户管理' }
      },
      {
        path: '/accountmanage/customize',
        component: () => import('@/views/accountmanage/customize/index'),
        meta: { title: '自定义群组' }
      }
    ]
  },
  {
    path: '/system',
    component: Layout,
    meta: { title: '系统管理', icon: 'icon_base' },
    children: [
      {
        path: '/system/data',
        component: () => import('@/views/system/data/index'),
        meta: { title: '数据字典' }
      },
      {
        path: '/system/parameter',
        component: () => import('@/views/system/parameter/index'),
        meta: { title: '系统参数' }
      },
      {
        path: '/system/operation',
        component: () => import('@/views//system/operation/index'),
        meta: { title: '操作记录' }
      }
    ]
  },
  { path: '*', redirect: '/404', hidden: true }
]

export default congigRouter
